home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / ModCurvesMenu.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  6.0 KB  |  172 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. // Alias|Wavefront Script File
  19. // MODIFY THIS AT YOUR OWN RISK
  20. //
  21. // Creation Date:  13 April 1997
  22. // Author:         gf
  23. //
  24. //
  25. //  Procedure Name:
  26. //      ModCurvesMenu
  27. //
  28. //  Description:
  29. //        Create the MODELLING->Curves menu
  30. //
  31. //  Input Arguments:
  32. //      parent to parent the menu to.
  33. //
  34. //  Return Value:
  35. //      None.
  36. //
  37.  
  38. global proc ModCurvesMenu( string $parent )
  39. {
  40.     int $dimWhenNoSelect = 0;
  41.  
  42.     setParent -m $parent;
  43.     if( `menu -q -ni $parent` != 0 ) {
  44.         //
  45.         //    Menu is built already - just return
  46.         //
  47.         return;
  48.     }
  49.     menuItem -l "CV Curve Tool" 
  50.         -annotation "CV Curve Tool: Create a curve on the grid or live surface specifying control vertices"
  51.         -image "curveCV.xpm"
  52.         -c "setToolTo curveContextCV" cvCurveItem;
  53.         menuItem -optionBox true -image "curveCV.xpm"
  54.             -annotation "CV Curve Tool Option Box"
  55.             -l "CV Curve Tool Option Box"
  56.             -c "setToolTo curveContextCV; toolPropertyWindow"
  57.             cvCurveDialogItem;
  58.     menuItem -l "EP Curve Tool" 
  59.         -annotation "EP Curve Tool: Create a curve on the grid or live surface specifying edit points"
  60.         -image "curveEP.xpm"
  61.         -c "setToolTo curveContextEP" epCurveItem;
  62.         menuItem -optionBox true -image "curveEP.xpm"
  63.             -annotation "EP Curve Tool Option Box"
  64.             -l "EP Curve Tool Option Box"
  65.             -c "setToolTo curveContextEP; toolPropertyWindow"
  66.              epCurveDialogItem;
  67.     menuItem -l "Pencil Curve Tool" 
  68.         -annotation "Pencil Curve Tool: Create a curve on the grid or live surface"
  69.         -image "pencil.xpm"
  70.         -c "setToolTo pencilContext" pencilCurveItem;
  71.         menuItem -optionBox true -image "pencil.xpm"
  72.             -annotation "Pencil Curve Tool Option Box"
  73.             -l "Pencil Curve Tool Option Box"
  74.             -c "setToolTo pencilContext; toolPropertyWindow" 
  75.             pencilCurveDialogItem;
  76.  
  77.     menuItem -d true;
  78.  
  79.     menuItem -l "Three Point Circular Arc Tool"
  80.         -annotation "Three Point Arc Tool: Create a circular arc on the grid specifying three points"
  81.         -image "threePointArc.xpm"
  82.         -c "setToolTo threePointArcContext" threePointArcItem;
  83.         menuItem -optionBox true -image "threePointArc.xpm"
  84.             -annotation "Three point arc option Box"
  85.             -l "Three Point Arc Tool Option Box"
  86.             -c "setToolTo threePointArcContext; toolPropertyWindow"
  87.             threePointArcDialogItem;
  88.  
  89.     menuItem -l "Two Point Circular Arc Tool"
  90.        -annotation "Two Point Arc Tool: Create a circular arc on the grid specifying two points"
  91.        -image "twoPointArc.xpm"
  92.        -c "setToolTo twoPointArcContext" twoPointArcItem;
  93.       menuItem -optionBox true -image "twoPointArc.xpm"
  94.          -annotation "Two point arc option Box"
  95.             -l "Two Point Arc Tool Option Box"
  96.             -c "setToolTo twoPointArcContext; toolPropertyWindow"
  97.             twoPointArcDialogItem;
  98.  
  99.     menuItem -d true;
  100.  
  101.  
  102.     menuItem -l "Offset Curve"
  103.         -c "performOffsetCurve 0;"
  104.         -dmc "performOffsetCurve 2"
  105.         -i "offsetCurve.xpm"
  106.         -annotation "Offset Curve: Select a curve, isoparm or trim edge" 
  107.         offsetCrvItem;
  108.         menuItem -optionBox true -i "offsetCurve.xpm"
  109.             -annotation "Offset Curve Option Box"
  110.             -l "Offset Curve Option Box"
  111.             -c "performOffsetCurve 1"
  112.             offsetCurveDialogItem;
  113.     if( $dimWhenNoSelect )
  114.         dimWhen -f "SomethingSelected" ($parent+"|offsetCrvItem");
  115.  
  116.     menuItem -l "Offset Curve On Surface"
  117.         -c "performOffsetCos 0;"
  118.         -dmc "performOffsetCos 2"
  119.         -i "offsetCos.xpm"
  120.         -annotation "Offset Curve On Surface: Select a curve on surface, isoparm or trim edge" 
  121.         offsetCosItem;
  122.         menuItem -optionBox true -i "offsetCos.xpm"
  123.             -annotation "Offset Curve On Surface Option Box"
  124.             -l "Offset Curve On Surface Option Box"
  125.             -c "performOffsetCos 1"
  126.             offsetCosDialogItem;
  127.     if( $dimWhenNoSelect )
  128.         dimWhen -f "SomethingSelected" ($parent+"|offsetCosItem");
  129.  
  130.     menuItem -l "Fillet Curve" 
  131.         -annotation "Fillet Curve: Select curve parameter points"
  132.         -c "performFilletCurve 0" -dmc "performFilletCurve 2" 
  133.         -i "fillet.xpm" crvFilletItem;
  134.         menuItem -optionBox true  -i "fillet.xpm" 
  135.             -annotation "Fillet Curve Option Box"
  136.             -l "Fillet Curve Option Box"
  137.             -c "performFilletCurve 1" 
  138.             filletCurveDialogItem;
  139.     if( $dimWhenNoSelect )
  140.         dimWhen -f "SomethingSelected" ($parent+"|crvFilletItem");
  141.  
  142.     menuItem -d true;
  143.  
  144.     menuItem -l "Duplicate Curves" 
  145.             -c "performDuplicateCurve 0"
  146.             -dmc "performDuplicateCurve 2" 
  147.             -annotation "Duplicate Curves: Select surface curve(s)"
  148.             -i "duplicateCurve.xpm" duplicateCurveItem ;
  149.     menuItem -optionBox true -i "duplicateCurve.xpm"
  150.             -annotation "Duplicate Curves Option Box"
  151.             -l "Duplicate Curves Option Box"
  152.             -c "performDuplicateCurve 1"
  153.             duplicateCurveDialogItem;
  154.     if( $dimWhenNoSelect )
  155.            dimWhen -f "SomethingSelected" ($parent+"|duplicateCurveItem");
  156.  
  157.     menuItem -l "Fit B-spline"
  158.         -c "performFitBspline 0;"
  159.         -dmc "performFitBspline 2"
  160.         -annotation "Fit B-spline: Select curve(s), isoparm(s) or trim edge(s)"
  161.         -i "fitBSpline.xpm"
  162.         fitBsplineItem;
  163.         menuItem -optionBox true -i "fitBSpline.xpm"
  164.             -annotation "Fit B-spline Option Box"
  165.             -l "Fit B-spline Option Box"
  166.             -c "performFitBspline 1"
  167.             fitBsplineDialogItem;
  168.     if( $dimWhenNoSelect )
  169.         dimWhen -f "SomethingSelected" ($parent+"|fitBsplineItem");
  170. }
  171.  
  172.